﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Interfaces__Indexes__Operators
{
    class BasicOperations
    {
        static void Main(string[] args)
        {
            ComplexNumber f1 = new ComplexNumber(1, 2);
            ComplexNumber f2 = new ComplexNumber(2, 2);

            Console.WriteLine("f1 = {0}", f1);
            Console.WriteLine("f2 = {0}", f2);
            Console.WriteLine("f1 + f2 = {0}", f1+f2);
            Console.WriteLine("f1 * f2 = {0}", f1 * f2);
            Console.WriteLine("f1 / f2 = {0}", f1 / f2);

            Console.WriteLine("f1 real = {0}",f1[0]);
            Console.WriteLine("f1 imaginary = {0}", f1[1]);
        }
    }
}